/**
 * Created by huotaol on 2017/4/17.
 * 初始化一些设置
 */
const init = () => {
    printLogger(true);
    closeYellowBox(true);
};
/*设置是否显示黄色警告信息*/
const closeYellowBox = (closeYellowBox) => {
    if (closeYellowBox === true) {
        console.disableYellowBox = true;
        console.warn('YellowBox is disabled.');
    }
};

/*index文件引入，设置release版本不打印日志*/
const printLogger = (print) => {
    if (!__DEV__ && print === true) {
        global.console = {
            info: () => {
            },
            log: () => {
            },
            warn: () => {
            },
            error: () => {
            },
        };
    }
};

export  default init;





